using System;

namespace FileNameChanger
{
	class Class1
	{
		double prop = 1;
		[STAThread]
		static void Main(string[] args)
		{
			FileNameChanger changer = new FileNameChanger();
			changer.EndExtension = "html";
			changer.AddRemovePatterns('^');
			changer.AddRemovePatterns('%');
			changer.AddRemoveStringPattern(".html");
			changer.AddRemoveStringPattern(".htm");
			changer.AddChangePatterns(new string[] {".","_"});
			changer.AddChangePatterns(new string[] {"~","_"});
			changer.StartingPath = @"D:\slava\projects\THESIS_RELATED\Files\webkb-data\webkb";
			//changer.StartingPath = @"c:\test";
			changer.OutputDirectory = @"D:\slava\projects\THESIS_RELATED\Files\webkb-data\processed";
			changer.TraverseSubdirectory = true;
			changer.IsCategoryFileNeeded = true;
			changer.CategoryIndexFromDirectoryName = 2;
			changer.Start();
		}

	}
}
